<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组对象</title>
	<script>
		
		arr = [42,2,54,66,4];

		str = arr.join("***");

		document.write(str);

		// arr.pop();
		// arr.shift();
		// arr.push(78);
		// arr.unshift(78);
		// arr[100] = 90;
		// arr.splice(2,2);
		// arr.splice(2,1,89,77);
		res = arr.slice(2,4);
		// arr[arr.length] = 90;
		console.log(res);
		console.log(arr);

		arr1 = [42,2,54,66,4];
		arr2 = [5674,4,3];

		arr3 = arr1.concat(arr2);


		// console.log(arr3);
		
		arr = [45,26,235,2,2,26,456];

		aa = arr.indexOf(266);

		console.log(aa);





	</script>
</head>
<body>
	
</body>
</html>